<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="../../Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="../../Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="../../Css/style.css" />
	<script type="text/javascript" src="../../Js/jquery-2.1.4.min.js"></script>
    <script type="text/javascript" src="../../Js/bootstrap.js"></script>
    <script type="text/javascript" src="../../Js/ckform.js"></script>
    <script type="text/javascript" src="../../Js/common.js"></script>
	<script type="text/javascript" src="../../myjQuery/jQuery-getUrlParam.js"></script>
    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }
    </style>
    <script>
    $(function () {
		$.ajax({
			type:"post",
			url:"../../transaction/findall",
			contentType:"application/json;charset=utf-8",
			success:function(transaction){
				$('tbody').html("");
				for(var i=0;i<transaction.length;i++ ){
					var pickmark;
					if(transaction[i].pickmark == 0){
						pickmark="已取件";
					}else{
						pickmark="未取件";
					}
					$('tbody')
			  		.append("<tr id=1>"+
			  				"<td>"+transaction[i].runnum+"</td>"+
			  				"<td>"+transaction[i].uid+"</td>"+
			  				"<td>"+transaction[i].cid+"</td>"+
			  				"<td>"+transaction[i].lid+"</td>"+
			  				"<td>"+transaction[i].payamount+"</td>"+
			  				"<td>"+$.myTime.UnixToDate(transaction[i].trantime/1000,true,"none")+"</td>"+
			  				"<td>"+$.myTime.UnixToDate(transaction[i].pickuptime/1000,true,"none")+"</td>"+
			  				"<td>"+transaction[i].pickupid+"</td>"+
			  				"<td>"+pickmark+"</td>"+
			  				"</tr>");
					//$('#pagenum').html("1 条记录 1/1页");
				}
			}
		});
    });

	function del(id)
	{
		alert('交易订单不允许更改操作');
	}
</script>
</head>
<body>
<form class="form-inline definewidth m20" action="index.html" method="get">  
    角色名称：
    <input type="text" name="rolename" id="rolename"class="abc input-default" placeholder="" value="">&nbsp;&nbsp;  
    <button type="button" class="btn btn-primary">查询</button>
</form>
	<table class="table table-bordered table-hover definewidth m10" >
	    <thead>
	    <tr>
	        <th>订单号</th>
	        <th>用户ID</th>
	        <th>柜子编号</th>
	        <th>格子编号</th>
	        <th>支付金额</th>
	        <th>交易时间</th>
	        <th>取件时间</th>
	        <th>取件码</th>
	        <th>取件情况</th>
	    </tr>
	    </thead>
	    <tbody></tbody>
	</table>
</body>
</html>